class MyThread extends Thread {
    @Override
    public void run() {
            System.out.println("Hello word");
    }
}
public class Demo {
    public static void main(String[] args)  {
        Thread thread=new MyThread();
        //System.out.println("Hello main");
        //thread.run();
        thread.start();
            //System.out.println("Hello main");
        }

    }

